package com.example.yibu;

import java.util.HashMap;

import manager.ConnectionManager;

import MLTool.MHttpClient;
import SyncPool.HttpLifeCycleInterface;
import SyncPool.RequestType;
import SyncPool.URLConfig;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity implements HttpLifeCycleInterface{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		
		
		URLConfig config=new URLConfig();
		config.setRequestType(RequestType.POST);
		config.setUrl("");
		
		config.setMap(new HashMap<String, Object>());
		
		
		
		ConnectionManager requstManager=new MHttpClient().newRequest(config, this);
		requstManager.SendPost();
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public void start(long total) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void current(long current, long total) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void stop() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void success(String result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void fail(Exception e) {
		// TODO Auto-generated method stub
		
	}

}
